﻿<%@ Page Language="C#" MasterPageFile="~/second.master" AutoEventWireup="true" CodeFile="index.aspx.cs"
    Inherits="dataproduct_index" Title="数据产品" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" runat="Server">
    <link href="../css/jPaginate/css/style.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div class="mainBar_head">
        <div class="mainBar_title">
            数据产品
        </div>
        <div class="mainBar_hind">
            <a href="../index.aspx">首页</a>>><a href="index.aspx">数据产品</a>
        </div>
    </div>
    <div class="mainBar_body">
        <ul id="datalist" class="secondList">
            <%
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    int count = ds.Tables[0].Rows.Count;
                    for (int i = 0; i < count; i++)
                    {
                        System.Data.DataRow row = ds.Tables[0].Rows[i];
            %>
            <li>
                <%
                    if (row["HIT"] != System.DBNull.Value && int.Parse(row["HIT"].ToString()) > 1)
                    {
                   
                %>
                <div class="main_title_container main_title_container_hot">
                    <%
                        }
                    else
                    {
                    %>
                    <div class="main_title_container">
                        <%
                            }
                        %>
                        <div class="main_title_name">
                            <%= row["NAME"] %>
                        </div>
                        <div class="main_title_description">
                            应用领域：<%= row["FIELD"] %>
                        </div>
                    </div>
                    <div class="main_content_container">
                        <div class="main_content_img">
                            <img src="../file/solutions/thumbnail/<%= row["IMAGE"]%>" />
                        </div>
                        <div class="main_content_description">
                            <%= row["SUMMARY"]%>
                        </div>
                        <div class="main_content_detail">
                            <a href="detail.aspx?id=<%= row["ID"]%>">[详细介绍]</a>
                        </div>
                    </div>
            </li>
            <%
                }
                }
            %>
        </ul>
        <div class="mainBar_page">
            <div id="pagingDiv">
            </div>
        </div>
    </div>
    <div style="clear: both;">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="javascriptPlaceHolder" runat="Server">

    <script src="../js/jquery.htmlanimation.js" type="text/javascript"></script>

    <script src="../js/jquery.paginate.js" type="text/javascript"></script>

    <script type="text/javascript">
    jQuery(document).ready(function() {
    $("#pagingDiv").paginate({
				count 		: <%=pageCount %>,
				start 		: <%=page %>,
				display     : 10,
				border					: true,
				border_color			: '#cbccd0',
				text_color  			: '#000000',
				background_color    	: '#ffffff',	
				border_hover_color		: '#ccc',
				text_hover_color  		: '#ffffff',
				background_hover_color	: '#de7a00', 
				images					: false,
				mouse					: 'press',
				onChange     			: function(page){
											window.location.href="index.aspx?page=" + page;
										  }
			});
    
    });

    
    </script>

</asp:Content>
